﻿package com.taihua_tech.basic.util;

import org.apache.commons.dbcp.BasicDataSource;

public class TeradataConnection extends BasicDataSource {
	public TeradataConnection() {
		super();
	}

	/**
	 * 将来在这里对数据库密码进行解密操作
	 */
	@Override
	public synchronized void setPassword(String password) {
//		password+="TEST";
		this.password=CryptionUtil.decryption(password, "12345678");
		System.out.println("password:========解密前："+password+"===解密后："+this.password+"======================================"+password);
		
		super.setPassword(this.password);
	}
	
	@Override
	public synchronized void setUsername(String username) {
		System.out.println("username:===================================================="+username);
		super.setUsername(username);
	}
}